<?php

namespace DesignNew\Composite;

/**
 * 以提到的员工为例，下面是不同的员工类型
 */
interface Employee
{
    public function __construct(string $name, float $salary);
    public function getName():string;
    public function setSalary(float $salart);
    public function getSalary():float;
    public function getRoles():array;
}